package com.summer.web.v1.controller;

import com.summer.common.lib.core.interfaces.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.ws.rs.Path;
import java.util.Map;

@Path("/hello")
public class HelloWorldController implements RestController {

    @Path("/world")
    @Override
    public Object execute(HttpServletRequest req) throws Throwable {
        Map<String, String[]> parameterMap = req.getParameterMap();
        System.out.println("接受客户端请求的入参 parameterMap: " + parameterMap);
        return "hello world";
    }
}
